//
//  WHWalletMenuCell.m
//  SquirrelSeller
//
//  Created by 邓伟浩 on 2019/1/6.
//  Copyright © 2019 邓伟浩. All rights reserved.
//

#import "WHWalletMenuCell.h"

@interface WHWalletMenuCell ()

@property (nonatomic, strong) UIView *backContentView;

@end

@implementation WHWalletMenuCell

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self setUpUI];
    }
    return self;
}

- (void)setUpUI {
    [self.contentView addSubview:({
        _backContentView = [[UIView alloc] init];
        _backContentView.backgroundColor = KWhiteColor;
        
        _backContentView;
    })];
    
    [_backContentView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(self.contentView);
    }];
    
    [_backContentView addSubview:({
        _tipsImageView = [[UIImageView alloc] init];
        _tipsImageView.contentMode = UIViewContentModeScaleAspectFit;
        
        _tipsImageView;
    })];
    [_tipsImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.height.mas_equalTo(kRealwidth(60));
        make.centerX.mas_equalTo(_backContentView.mas_centerX);
        make.centerY.mas_equalTo(_backContentView.mas_centerY);
    }];
    
//    [_backContentView addSubview:({
//        _tipsLabel = [[UILabel alloc] init];
//        _tipsLabel.textAlignment = NSTextAlignmentCenter;
//        _tipsLabel.font = SYSTEMFONT(kRealwidth(15));
//        _tipsLabel.textColor = CFontContentLightGrayColor;
//
//        _tipsLabel;
//    })];
//    [_tipsLabel mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.top.mas_equalTo(_tipsImageView.mas_bottom).offset(kRealwidth(16));
//        make.centerX.mas_equalTo(_backContentView.mas_centerX);
//        make.height.mas_equalTo(kRealwidth(15));
//    }];
}

@end
